Skip to content

Conversation

@joshuarli
Copy link
Member

@joshuarli joshuarli commented Sep 14, 2022

Discovered as part of #75. Thought it would be better to put more specific cases in packages.ini.

edit: not needed anymore since #79, but gonna keep this around

Copy link
Contributor

@asottile-sentry asottile-sentry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good -- just a few tiny things

if "/test/" in name or "/tests/" in name:
continue

if any(substr in name for substr in package.likely_binary_ignore):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think these would be better as exact matches?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok!



def _likely_binary(sdist: str) -> str | None:
def _likely_binary(package: Package, sdist: str) -> str | None:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it'll be much easier to test if this takes likely_binary_ignore directly rather than the whole Package

@asottile-sentry asottile-sentry deleted the feat/likely_binary_ignore branch October 20, 2023 15:38
This was referenced Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants